package cn.jzq.kotoba.modules.principle.demeter.bad;

import java.util.ArrayList;
import java.util.List;

public class Teacher {

    public void command() {
        //耦合了Students类
        List<Student> stuList = new ArrayList<>();
        for (int i = 0; i < 20; i++) {
            stuList.add(new Student());
        }

        StudentLeader studentLeader = new StudentLeader();
        int counts = studentLeader.count(stuList);
        System.out.println("老师委托体育委员清点人数完毕......");
        System.out.println("老师报告学校领导，人数为" + counts);
    }
}
